﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///AnnounceTxtInfoModel 的摘要说明
/// </summary>
public class AnnounceTxtInfoModel
{
    public AnnounceTxtInfoModel()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }
    #region Model
    private string _textid;
    private string _textcode;
    private DateTime _publdate;
    private DateTime _announcedate;
    private string _announcetitle;
    private string _announcecontent;
    private decimal _announcesize;
    private string _memo;
    private DateTime _rectime;
    private DateTime _modtime;
    private string _isvalid;
    private string _recordid;
    private string _seqid;
    /// <summary>
    /// 正文ID
    /// </summary>
    public string TextID
    {
        set { _textid = value; }
        get { return _textid; }
    }
    /// <summary>
    /// 公告编码
    /// </summary>
    public string TextCode
    {
        set { _textcode = value; }
        get { return _textcode; }
    }
    /// <summary>
    /// 发布时间
    /// </summary>
    public string PublDate
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _publdate = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_publdate == null || _publdate == new DateTime() || _publdate == DateTime.MinValue)
            {
                return string.Empty;
            }
            else
            {
                return _publdate.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 公告日期
    /// </summary>
    public string AnnounceDate
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _announcedate = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_announcedate == null || _announcedate == new DateTime() || _announcedate == DateTime.MinValue)
            {
                return string.Empty;
            }
            else
            {
                return _announcedate.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 公告标题
    /// </summary>
    public string AnnounceTitle
    {
        set { _announcetitle = value; }
        get { return _announcetitle; }
    }
    /// <summary>
    /// 公告内容
    /// </summary>
    public string AnnounceContent
    {
        set { _announcecontent = value; }
        get { return _announcecontent; }
    }
    /// <summary>
    /// 公告大小
    /// </summary>
    public decimal AnnounceSize
    {
        set { _announcesize = value; }
        get { return _announcesize; }
    }
    /// <summary>
    /// 备注
    /// </summary>
    public string Memo
    {
        set { _memo = value; }
        get { return _memo; }
    }
    /// <summary>
    /// 录入时间
    /// </summary>
    public string RecTime
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _rectime = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_rectime == null || _rectime == new DateTime() || _rectime == DateTime.MinValue)
            {
                return string.Empty;
            }
            else
            {
                return _rectime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 修改时间
    /// </summary>
    public string ModTime
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _modtime = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_modtime == null || _modtime == new DateTime() || _modtime == DateTime.MinValue)
            {
                return string.Empty;
            }
            else
            {
                return _modtime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 是否有效
    /// </summary>
    public string IsValid
    {
        set { _isvalid = value; }
        get { return _isvalid; }
    }
    /// <summary>
    /// 记录ID
    /// </summary>
    public string RecordID
    {
        set { _recordid = value; }
        get { return _recordid; }
    }
    /// <summary>
    /// 
    /// </summary>
    public string SEQID
    {
        set { _seqid = value; }
        get { return _seqid; }
    }
    #endregion Model
}